<style>
    #login-button{
        background: #286090!important;
        color: white!important;
        border: 1px solid #286090!important;
        border-radius: 3px;
    }
</style>
<script type="text/javascript" charset="utf-8" src="/ueditor/ueditor.config.js"></script>
<script type="text/javascript" charset="utf-8" src="/ueditor/ueditor.all.min.js"> </script>
<script type="text/javascript" charset="utf-8" src="/ueditor/lang/zh-cn/zh-cn.js"></script>
<script type="text/javascript" src="/My97DatePicker/WdatePicker.js"></script>

<div class="span10">
    <div style="margin-bottom: 20px;">
        <a href="/index/index">首页</a><span >&gt;</span><span>版本控制</span><span >&gt;</span><span>添加/修改</span>
    </div>

    <form name="form" method="post" action="<?php echo baseUrl."/content/version/index"?>" enctype="multipart/form-data">
        <table>
            <tr>
                <td>版本号:</td>
                <td>
                    <input type="text" name="num" value="<?php echo isset($data['num'])? $data['num']:''?>" />
                </td>
            </tr>
            <tr>
                <td>版本名称:</td>
                <td>
                    <input type="text" name="name" value="<?php echo isset($data['name'])? $data['name']:''?>" />
                </td>
            </tr>
            <tr>
                <td>更新内容:</td>
                <td>
                    <textarea type="text" name="content" style="height: 300px" ><?php echo isset($data['content'])?$data['content']:''?></textarea>

                </td>
            </tr>

            <tr>
                <td>下载地址:</td>
                <td>
                    <input type="text" name="file" value="<?php echo isset($data['file'])? $data['file']:''?>" />
                </td>
            </tr> 
            <tr>
                <td colspan="2" align="right">
                    <input type="hidden" name='id' value="<?php echo isset($data)? $data['id']:''?>"/>
                    <button type="submit" id="login-button">添加/修改</button></td>
            </tr>
            <input type="hidden" name="_csrf" value="<?=Yii::$app->request->getCsrfToken()?>" />
        </table>
    </form>

</div>